import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from "./router";
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import './assets/global.css'
import {zhCn} from "element-plus/es/locale/index";
import { Menu as MenuIcon } from '@element-plus/icons-vue'
const app = createApp(App)
import * as ElIconModules from '@element-plus/icons';// 全局引用element-icon
// 注册Icons 全局组件
Object.keys(ElIconModules).forEach((key) => {//循环遍历组件名称
    if ("Menu" !== key) {//如果不是图标组件不是Menu，就跳过，否则加上ICon的后缀
        app.component(key, ElIconModules[key]);
    } else {
        app.component(key + "Icon", ElIconModules[key]);
    }
});

createApp(App).use(router).use(ElementPlus, {locale: zhCn}).mount('#app')
